package webmarket.common;

import webmarket.controller.transferobjects.JQueryDataTableParamModel;

public class DatatableResponse<T> {

	private final String sEcho;
	private String iTotalRecords;
	private String iTotalDisplayRecords;
	private T aaData;

	public DatatableResponse(JQueryDataTableParamModel param) {
		sEcho = param.sEcho;
	}

	/**
	 * @return the aaData
	 */
	public T getAaData() {
		return aaData;
	}

	/**
	 * @param aaData
	 *            the aaData to set
	 */
	public void setAaData(T aaData) {
		this.aaData = aaData;
	}

	/**
	 * @return the sEcho
	 */
	public String getsEcho() {
		return sEcho;
	}

	/**
	 * @return the iTotalRecords
	 */
	public String getiTotalRecords() {
		return iTotalRecords;
	}

	/**
	 * @param iTotalRecords the iTotalRecords to set
	 */
	public void setiTotalRecords(String iTotalRecords) {
		this.iTotalRecords = iTotalRecords;
	}

	/**
	 * @return the iTotalDisplayRecords
	 */
	public String getiTotalDisplayRecords() {
		return iTotalDisplayRecords;
	}

	/**
	 * @param iTotalDisplayRecords the iTotalDisplayRecords to set
	 */
	public void setiTotalDisplayRecords(String iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}
}
